package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author 冯政尚
 * @since 2019-06-03
 */
@ApiModel(value="Menu对象", description="菜单表")
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "菜单名字")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty(value = "菜单路径")
    @TableField("menu_url")
    private String menuUrl;

    @ApiModelProperty(value = "菜单级别  1 一级菜单  2 二级菜单")
    @TableField("menu_lev")
    private Integer menuLev;

    @ApiModelProperty(value = "菜单样式")
    @TableField("menu_class")
    private String menuClass;

    @ApiModelProperty(value = "上级菜单")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "排序")
    @TableField("menu_order")
    private Integer menuOrder;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }
    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }
    public Integer getMenuLev() {
        return menuLev;
    }

    public void setMenuLev(Integer menuLev) {
        this.menuLev = menuLev;
    }
    public String getMenuClass() {
        return menuClass;
    }

    public void setMenuClass(String menuClass) {
        this.menuClass = menuClass;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public Integer getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Menu{" +
        "id=" + id +
        ", menuName=" + menuName +
        ", menuUrl=" + menuUrl +
        ", menuLev=" + menuLev +
        ", menuClass=" + menuClass +
        ", parentId=" + parentId +
        ", menuOrder=" + menuOrder +
        "}";
    }
}
